package com.liangzhong.model.activity.qzone
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;

	/**
	 *黄钻 
	 * @author lake
	 * 
	 */	
	public class QzoneVo extends EventDispatcher
	{
		/**
		 * 是否黄钻 1为是 0 为否
		 */		
		public var isvip 			:int;
		/**
		 * 黄钻等级
		 */		
		public var viplevel			:int;
		/**
		 * 是否年费黄钻 1为是 0 为否
		 */		
		public var isyearvip 		:int;
		/**
		 *领取状态 1为领取 0未领取 
		 */		
		public var status 			:int;
		/**
		 *是否请求过数据 
		 */		
		public var isReq			:Boolean = false;
		/**
		 *奖励 
		 */		
		public var awards			:Array = [{id:26,type:6},{id:2,type:6},{id:16,type:6},{id:15,type:5}];
		
		public function QzoneVo()
		{
			
		}
		/**
		 *解析数据 
		 * @param obj
		 * 
		 */		
		public function parse(obj :Object):void
		{
			isvip = obj.yellowVIP.isvip;
			viplevel = obj.yellowVIP.viplevel;
			isyearvip = obj.yellowVIP.isyearvip;
			status = obj.yellowVIP.status4;
			isReq = true;
			this.dispatchEvent(new Event(Event.CHANGE));
		}
		/**
		 *更新状态 
		 * @param value
		 * 
		 */		
		public function updateStatus(value :int):void
		{
			status = value;
			this.dispatchEvent(new Event(Event.CHANGE));
		}
	}
}